<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport"    content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author"      content="尊重作者:Sergey Pozhilov (GetTemplate.com)">
	<link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/images/gt_favicon.png">
	<!-- <link rel="stylesheet" media="screen" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700"> -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/css/font-awesome.min.css">

	<!-- Custom styles for our template -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/css/bootstrap-theme.css" media="screen" >
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/css/main.css">

	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
	<script src=:<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/js/html5shiv.js"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/js/respond.min.js"></script>
	<![endif]-->

    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<body class="home">
	<!-- Fixed navbar -->
	<div class="navbar navbar-inverse navbar-fixed-top headroom" >
		<div class="container">
			<div class="navbar-header">
				<!-- Button for smallest screens -->
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"><span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
				<!--<a class="navbar-brand" href="index.php"><img src="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/images/logo.png" alt="Progressus HTML5 template"></a>-->
				<a class="navbar-brand" href="index.php"><canvas style="height:20px;" id="c"></canvas><div style="text-align:center;clear:both;"></div></a>
			</div>
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav pull-right">
					<li class="active"><?php echo CHtml::link('首页', array('/site/index'));?></li>
					<li class="active"><?php echo CHtml::link('关于', array('/site/page', 'view'=>'about'));?></li>
					<li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">更多<b class="caret"></b></a>
						<ul class="dropdown-menu">
							<li class="active"><?php echo CHtml::link('图书', array('/book/index'));?></li>
							<li class="active"><?php echo CHtml::link('分类', array('/type/index'));?></li>
							<li class="active"><?php echo CHtml::link('评论', array('/message/index'));?></li>
							<li class="active"><?php echo CHtml::link('用户', array('/user/index'));?></li>
						</ul>
					</li>
					<li class="active"><?php echo CHtml::link('联系', array('/site/contact'));?></li>
                    <?php if(Yii::app()->user->name == 'Guest'): ?>
					    <li><?php echo CHtml::link('登陆 / 注册',array('/site/login'));?></li>
                    <?php else: ?>
					    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><strong><?php echo Yii::app()->user->name; ?></strong><b class="caret"></b></a>
					    	<ul class="dropdown-menu">
                                <li><?php echo CHtml::link('登出', array('/site/logout'));?></li>
					    	</ul>
					    </li>
                    <?php endif; ?>
				</ul>
			</div><!--/.nav-collapse -->
		</div>
	</div>
	<!-- /.navbar -->

	<!-- Header -->
	<header id="head" class="secondary"></header>

	    <?php echo $content; ?>

	    <div class="clear"></div>
    </div>


</div><!-- page -->

	<footer id="footer" class="top-space">

		<div class="footer1">
			<div class="container">
				<div class="row">

					<div class="col-md-3 widget">
						<h3 class="widget-title">联系我</h3>
						<div class="widget-body">
							<p>+028 99999999<br>
								<a href="mailto:#">some.email@somewhere.com</a><br>
								<br>
                                四川×成都
							</p>
						</div>
					</div>

					<div class="col-md-3 widget">
                        <!--
						<h3 class="widget-title">Follow me</h3>
						<div class="widget-body">
							<p class="follow-me-icons">
								<a href=""><i class="fa fa-twitter fa-2"></i></a>
								<a href=""><i class="fa fa-dribbble fa-2"></i></a>
								<a href=""><i class="fa fa-github fa-2"></i></a>
								<a href=""><i class="fa fa-facebook fa-2"></i></a>
							</p>
						</div>
                        -->
					</div>

					<div class="col-md-6 widget">
						<h3 class="widget-title">赞助</h3>
						<div class="widget-body">
                            <p>欢迎赞助本站，使其拥有更丰富的功能
						</div>
					</div>

				</div> <!-- /row of widgets -->
			</div>
		</div>

		<div class="footer2">
			<div class="container">
				<div class="row">

					<div class="col-md-6 widget">
						<div class="widget-body">
							<p class="simplenav">
                                <!--
								<a href="#">Home</a> |
								<a href="about.html">About</a> |
								<a href="sidebar-right.html">Sidebar</a> |
								<a href="contact.html">Contact</a> |
								<b><a href="signup.html">Sign up</a></b>
                                -->
							</p>
						</div>
					</div>

					<div class="col-md-6 widget">
						<div class="widget-body">
							<p class="text-right">
		                    Copyright &copy; <?php echo date('Y'); ?> by juny. All Rights Reserved.<br/>
							</p>
						</div>
					</div>

				</div> <!-- /row of widgets -->
			</div>
		</div>

	</footer>

	<!-- JavaScript libs are placed at the end of the document so the pages load faster -->
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/js/jquery.min.js"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/js/bootstrap.min.js"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/js/headroom.min.js"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/js/jQuery.headroom.min.js"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/Progressus/assets/js/template.js"></script>
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/html5-canvas-shine-loading/js/index.js"></script>
</body>
</html>
